<#include "COMMON_HEAD.ftl">
package ${basePackage}.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cosmetic.core.repository.BaseRepository;
import com.cosmetic.core.service.impl.BaseServiceImpl;
import ${basePackage}.repository.${entityName}Repository;
import ${basePackage}.service.${entityName}Service;
import ${basePackage}.entity.${entityName};

<#include "COMMON_MIDDLE.ftl">
@Service
public class ${entityName}ServiceImpl extends BaseServiceImpl<${entityName}, ${key.entityType}> implements ${entityName}Service {

    @Autowired
    private ${entityName}Repository ${entityNameLower}Repository;

    @Override
    public BaseRepository getRepository() {
        return ${entityNameLower}Repository;
    }
}